import * as utils from './utils.js'
export default {
    ...utils,
    copyContent(text) {
        text = text + ''
        uni.setClipboardData({
            data: text,
            success: function () {
                uni.showToast({
                    title: '复制成功',
                    icon: 'none',
                    duration: 2000
                });
            },
            fail: function(){
                uni.showToast({
                    title: '复制失败',
                    icon: 'none',
                    duration: 2000
                });
            }
        });
    }
}
